#include <CommandSelect.h>
Inheritance diagram for CommandSelect:

Public Member Functions | |
| CommandSelect (int isMultipleSelection, TraffEduObject *obj, OSGWindows *osgwind) | |
| bool | execute () |
| bool | unexecute () |
| void | changeState () |
| void | changeStateReverse () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | selectedObjs_ |
| vector< TraffEduObject * > | tmpObjs_ |
| osg::StateSet * | stateset |
| int | isMultip |
Definition at line 8 of file CommandSelect.h.
|
||||||||||||||||
|
A constructor. Initializes isMultipleSelection and osgwind_ variables.
Definition at line 2 of file CommandSelect.cpp. References OSGWindows::getSelectedObjects(), isMultip, osgwind, osgwind_, selectedObjs_, and tmpObjs_. |
|
|
highlight the selected objects in the environment. Definition at line 59 of file CommandSelect.cpp. References stateset. |
|
|
un_highlight the selected objects in the environment. Definition at line 67 of file CommandSelect.cpp. References stateset. Referenced by execute(). |
|
|
do the selection operation.
Implements Command. Definition at line 13 of file CommandSelect.cpp. References changeStateReverse(), OSGWindows::clearSelectedObjects(), OSGWindows::getObjects(), isMultip, osgwind, osgwind_, selectedObjs_, OSGWindows::setSelectedObjects(), stateset, and tmpObjs_. Referenced by OSGWindows::addCommandSelect(). |
|
|
undo the selection operation.
Implements Command. Definition at line 52 of file CommandSelect.cpp. |
|
|
a private variable. It shows if the user intended to make multiple selection or not. Definition at line 40 of file CommandSelect.h. Referenced by CommandSelect(), and execute(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandSelect.h. Referenced by CommandSelect(), and execute(). |
|
|
a private vector of TraffEduObjects. It holds the selected objects. Definition at line 22 of file CommandSelect.h. Referenced by CommandSelect(), and execute(). |
|
|
a private osg::StateSet pointer. It holds state of the selected/deselected objects. Definition at line 34 of file CommandSelect.h. Referenced by changeState(), changeStateReverse(), and execute(). |
|
|
a private vector of TraffEduObjects. It holds the selected objects before the last selection operation. Definition at line 28 of file CommandSelect.h. Referenced by CommandSelect(), and execute(). |
1.4.6-NO